import { API } from "~/models/api";
import { ArticleResponse } from "~/models/article";
import { DataArrResponse, ResponseMsg } from "~/models/universal";

const func = async (event:any) => {
  const body = await readBody(event);
  const result = await $fetch<ResponseMsg<DataArrResponse<ArticleResponse>>>(API.BASE + API.ARTICLE_QUERY_LIST.URL, {
    method: "POST", body: body
  })  
  return result;
}
export default exceptionCapture(func)
